document.getElementById('changeColor').addEventListener('click', () => {
  // 获取当前活动标签页
  chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
    // 发送消息到内容脚本
    chrome.tabs.sendMessage(tabs[0].id, { action: 'changeColor' }, (response) => {
      document.getElementById('status').textContent = response?.message || '颜色已改变';
    });
  });
});